{include file="public/header" /}



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_entityclerk_manage}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    <form method="get" name="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt>{$Think.lang.entityshop_name}</dt>
                <dd>
                    <select name="entityshop_id">
                        <option value="">全部</option>
                        {foreach name="entityshop_list" item="entityshop"}
                        <option value="{$entityshop.entityshop_id}">{$entityshop.entityshop_name}</option>
                        {/foreach}
                    </select>
                </dd>
            </dl>
            <dl>
                <dt>{$Think.lang.entityclerk_like}</dt>
                <dd><input type="text" value="{$Request.param.entityclerk_like}" name="entityclerk_like" class="txt"></dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                <a href="{:url('Entityclerk/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
            </div>
        </div>
    </form>

    <table class="ds-default-table">
        <thead>
            <tr>
                <th>{$Think.lang.entityclerk_id}</th>
                <th>{$Think.lang.entityshop_name}</th>
                <th>{$Think.lang.entityclerk_name}</th>
                <th>{$Think.lang.entityclerk_phone}</th>
                <th>{$Think.lang.entityclerk_state}</th>
                <th>{$Think.lang.entityclerk_addtime}</th>
                <th>{$Think.lang.ds_handle}</th>
            </tr>
        </thead>
        <tbody>
            {notempty  name="entityclerk_list"}
            {foreach name="entityclerk_list" item="entityclerk"}
            <tr>
                <td>{$entityclerk.entityclerk_id}</td>
                <td>{$entityclerk.entityshop_name}</td>
                <td>{$entityclerk.entityclerk_name}</td>
                <td>{$entityclerk.entityclerk_phone}</td>
                <td>{$entityclerk.entityclerk_state}</td>
                <td>{$entityclerk.entityclerk_addtime|date="Y-m-d",###}</td>
                <td>
                    <a href="{:url('Entityclerk/edit',['entityclerk_id'=>$entityclerk.entityclerk_id])}"  class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
                    <a href="javascript:dsLayerConfirm('{:url('Entityclerk/drop',['entityclerk_id'=>$entityclerk.entityclerk_id])}','{$Think.lang.ds_ensure_del}')"  class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
                </td>
            </tr>
            {/foreach}
            {else /}
            <tr class="no_data">
                <td colspan="20">{$Think.lang.no_record}</td>
            </tr>
            {/notempty}
        </tbody>
    </table>
    {$show_page}
</div>